package Singleton;

/**
 * 静态内部类
 */
public class SingletonExample4 {
    private SingletonExample4(){}

    private static class  SingletonHolder{
        private static final SingletonExample4 instance = new SingletonExample4();
    }

    private static SingletonExample4 getInstance(){
        return SingletonHolder.instance;
    }
}
